package com.ocom.mqsimple.business.forecastData.impl;


import com.alibaba.fastjson.JSON;
import com.ocom.common.request.payconfig.UpdateOrderForecastDetailRequest;
import com.ocom.common.request.simple.StudentExcelRequest;
import com.ocom.mqsimple.business.forecastData.ForecastDataProductService;
import com.ocom.mqsimple.utils.ForecastDataRabbitProductUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ForecastDataProductServiceImpl implements ForecastDataProductService {
	private final Logger log = LoggerFactory.getLogger(ForecastDataProductServiceImpl.class);

	@Autowired
	private ForecastDataRabbitProductUtil forecastDataRabbitProductUtil;


//	@Resource
//	RedisUtil redisUtil;

	/**
	 * 处理人员图片
	 */
	public void handle(String msg) {

//		log.info("代订餐mq-开始【{}】",request);
		//消息队列调用减库存接口  优先级越高越先执行完

//        String msg = JSON.toJSONString(request);
		forecastDataRabbitProductUtil.forecastDataSend(msg,15);

        log.info("代订餐mq-完成【{}】",msg);

	}

}
